home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Reusable Classes_Code / System_OS / Key Kit / Readme < prev   
Text File  |  1999-01-18  |  790b  |  10 lines

  1. Key Kit
  2. By Dan Vanderkam
  3.  
  4.   Key Kit is a simple package that lets you work with keycodes more easily. 
  5.  
  6.   In REALbasic (and most languages), characters are represented by ASCII values (ie, "A"=65). However keys (like Shift) are represented by a different set of values (keycodes). This package includes a module that can covert between ASCII, Keycodes, and text (like "Return" for ASCII 13). It also includes a canvas subclass that, when clicked, records what key is pressed as a keycode, and displays its name—something that you'll see in a lot of games.
  7.  
  8.   And, to top it all off, this kit includes a picture clipping of a keyboard with all the Keycodes on it—a very handy tool if you only need one or two keycodes.
  9.  
  10.   The example project will show everything, so be sure to check it out.